package com.zz.node;

public class L21Solution {
    public ListNode mergeTwoLists(ListNode list1, ListNode list2) {
        if(list1 == null || list2 == null){
            return null;
        }
        ListNode head = new ListNode();
        ListNode l1 = list1;
        ListNode l2 = list2;

        while (l1 != null || l2 != null){
            head.val = l1.val < l2.val ? l1.val : l2.val;
        }
        return null;
    }
}
